Component({
  mixins: [],
  data: {
    serviceShow: false
  },
  props: {
    activeIndex: 1,
    memberId: '',
    shopname: ''
  },
  didMount() { },
  didUpdate() { },
  didUnmount() { },
  methods: {
    closeModal() {
      this.setData({
        serviceShow: false
      })
    },
    showServiceModal() {
      this.setData({
        serviceShow: true
      })
    },
    goToMine() {
      my.switchTab({
        url: '/pages/user/usercenter/usercenter'
      });
    },
    gotoHome() {
      const { activeIndex, memberId, shopname } = this.props;
      if (activeIndex != 1) {
        my.navigateTo({
          url: '/pages/storeDetails/storeDetails?member_id=' + memberId + '&shopname=' + shopname
        });
      }
    },
    goToClassify() {
      const { activeIndex, memberId, shopname } = this.props;
      if (activeIndex != 2) {
        my.navigateTo({
          url: '/pages/shop/classify/classify?member_id=' + memberId + '&shopname=' + shopname
        })
      }
    }
  },
});
